package com.lupengning.payment.service;

import com.lupengning.payment.entity.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lupengning.payment.enums.OrderStatus;
import java.util.List;

public interface OrderInfoService extends IService<OrderInfo> {

  OrderInfo createOrderByProductId(Long productId);

  void saveCodeUrl(String orderNo, String codeUrl);

  List<OrderInfo> listOrderByCreateTimeDesc();

  void updateStatusByOrderNo(String orderNo, OrderStatus orderStatus);

  String getOrderStatus(String orderNo);

  List<OrderInfo> getNoPayOrderByDuration(int minutes);

  OrderInfo getOrderByOrderNo(String orderNo);
}
